//
//  EScrollerView.h
//  icoiniPad
//
//  Created by Ethan on 12-11-24.
//
//

#import <UIKit/UIKit.h>
#import "DWPageControl.h"

@protocol EScrollerViewDelegate <NSObject>
@optional
-(void)EScrollerViewDidClicked:(NSUInteger)index;
-(void)EScrollerViewDidClicked2:(NSUInteger)index;
@end

@interface EScrollerView : UIView<UIScrollViewDelegate> {
	CGRect viewSize;
	UIScrollView *scrollView;
	NSArray *imageArray;
    NSArray *titleArray;
    DWPageControl *pageControl;
    id<EScrollerViewDelegate> delegate;
    NSInteger currentPageIndex;
    UILabel *noteTitle;
    
    int TimeNum;
    BOOL Tend;
}

@property(nonatomic,retain)id<EScrollerViewDelegate> delegate;
@property(nonatomic,strong)NSTimer * timer;
-(id)initWithFrameRect:(CGRect)rect ImageArray:(NSArray *)imgArr TitleArray:(NSArray *)titArr;
-(id)initWithFrameRect2:(CGRect)rect ImageArray:(NSArray *)imgArr TitleArray:(NSArray *)titArr;
-(id)initWithFrameRect:(CGRect)rect ImageStringArray:(NSArray *)imgArr TitleStringArray:(NSArray *)titArr;

/**
 *  从本地获取图片的加载方法
 */
- (id)initWithFrameRect1:(CGRect)rect topBannerEntityArr:(NSArray *)entityArr;

@end
